//
//  JXWPromotionNavigationController.m
//  JXWShopping4IPhone
//
//  Created by zheng ji on 14-1-18.
//  Copyright (c) 2014年 jxw. All rights reserved.
//

#import "JXWPromotionNavigationController.h"

@interface JXWPromotionNavigationController ()

@end

@implementation JXWPromotionNavigationController

- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{
    self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
    if (self) {
        // Custom initialization
    }
    return self;
}

- (void)viewDidLoad
{
    [super viewDidLoad];
    
    
	// Do any additional setup after loading the view.
}
-(void)createSegmentTitle{
    //NSArray* arraySeg=[[NSArray alloc] initWithObjects:@"1",@"2",@"3", nil];
    UISegmentedControl *segControl=[[UISegmentedControl alloc] initWithItems:[NSArray arrayWithObjects:@"1",@"2",@"3", nil]];
    //[segControl addTarget:self action:@selector(segmentControlAction:) forControlEvents:UIControlEventValueChanged];
    //segControl.frame = CGRectMake(0, 0, 90, 10);
    [segControl setAutoresizingMask:UIViewAutoresizingFlexibleWidth];
    segControl.segmentedControlStyle = UISegmentedControlStyleBar;
    //segControl.momentary = YES;
   // UIBarButtonItem *segmentBarItem = [[UIBarButtonItem alloc] initWithCustomView:segControl];
    [self.navigationItem setTitleView:segControl];
    [segControl release];
    
}

- (void)didReceiveMemoryWarning
{
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end
